// CRC32: CC69967C | Matched 6 variants of 3 shaders: Legacy Shaders/Bumped Diffuse, Legacy Shaders/Diffuse, Transparent/Double Sided Transparent (Supports Lightmap)
// 
//    Unity headers extracted from Normal-Bumped.shader
//    Shader "Legacy Shaders/Bumped Diffuse" {
//      Properties {
//       _Color ("Main Color", Color) = (1,1,1,1)
//       _MainTex ("Base (RGB)", 2D) = "white" { }
//       _BumpMap ("Normalmap", 2D) = "bump" { }
//      }
//      Fallback "Legacy Shaders/Diffuse"
//      SubShader 1/1 {
//        LOD 300
//        Tags { "RenderType"="Opaque" }
//        Pass 4/6 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "RenderType"="Opaque" }
//          ZWrite Off
//          GpuProgramID 261745
//          Program "vp" {
//            SubProgram "d3d9 " {
// 1:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "HDR_LIGHT_PREPASS_OFF" "LIGHTMAP_ON" }
// 2:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "LIGHTMAP_ON" "UNITY_HDR_ON" }
//              Bind "vertex" Vertex
//              Bind "texcoord" TexCoord0
//              Bind "texcoord1" TexCoord1
//              Matrix 7 [_Object2World] 3
//              Matrix 4 [glstate_matrix_modelview0] 3
//              Matrix 0 [glstate_matrix_mvp]
//              Vector 15 [_MainTex_ST]
//              Vector 10 [_ProjectionParams]
//              Vector 11 [_ScreenParams]
//              Vector 13 [unity_FogParams]
//              Vector 14 [unity_LightmapST]
//              Vector 12 [unity_ShadowFadeCenterAndType]
//            }
//          }
//        }
//      }
//    }
// 
//    Unity headers extracted from Normal-Diffuse.shader
//    Shader "Legacy Shaders/Diffuse" {
//      Properties {
//       _Color ("Main Color", Color) = (1,1,1,1)
//       _MainTex ("Base (RGB)", 2D) = "white" { }
//      }
//      Fallback "Legacy Shaders/VertexLit"
//      SubShader 1/1 {
//        LOD 200
//        Tags { "RenderType"="Opaque" }
//        Pass 4/6 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "RenderType"="Opaque" }
//          ZWrite Off
//          GpuProgramID 200775
//          Program "vp" {
//            SubProgram "d3d9 " {
// 1:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "HDR_LIGHT_PREPASS_OFF" "LIGHTMAP_ON" }
// 2:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "LIGHTMAP_ON" "UNITY_HDR_ON" }
//              Bind "vertex" Vertex
//              Bind "texcoord" TexCoord0
//              Bind "texcoord1" TexCoord1
//              Matrix 7 [_Object2World] 3
//              Matrix 4 [glstate_matrix_modelview0] 3
//              Matrix 0 [glstate_matrix_mvp]
//              Vector 15 [_MainTex_ST]
//              Vector 10 [_ProjectionParams]
//              Vector 11 [_ScreenParams]
//              Vector 13 [unity_FogParams]
//              Vector 14 [unity_LightmapST]
//              Vector 12 [unity_ShadowFadeCenterAndType]
//            }
//          }
//        }
//      }
//    }
// 
//    Unity headers extracted from Mobile Double Sided Transparent (Supports Lightmap).shader
//    Shader "Transparent/Double Sided Transparent (Supports Lightmap)" {
//      Properties {
//       _MainTex ("Base (RGB) Trans (A)", 2D) = "white" { }
//      }
//      Fallback "Diffuse"
//      SubShader 1/1 {
//        Tags { "QUEUE"="Transparent" "RenderType"="Transparent" }
//        Pass 3/4 {
//          Name "PREPASS"
//          Tags { "LIGHTMODE"="PrePassFinal" "QUEUE"="Transparent" "RenderType"="Transparent" }
//          ZWrite Off
//          Cull Off
//          Blend SrcAlpha OneMinusSrcAlpha
//          GpuProgramID 136280
//          Program "vp" {
//            SubProgram "d3d9 " {
// 1:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "HDR_LIGHT_PREPASS_OFF" "LIGHTMAP_ON" }
// 2:           Keywords { "DIRLIGHTMAP_OFF" "DYNAMICLIGHTMAP_OFF" "FOG_LINEAR" "LIGHTMAP_ON" "UNITY_HDR_ON" }
//              Bind "vertex" Vertex
//              Bind "texcoord" TexCoord0
//              Bind "texcoord1" TexCoord1
//              Matrix 7 [_Object2World] 3
//              Matrix 4 [glstate_matrix_modelview0] 3
//              Matrix 0 [glstate_matrix_mvp]
//              Vector 15 [_MainTex_ST]
//              Vector 10 [_ProjectionParams]
//              Vector 11 [_ScreenParams]
//              Vector 13 [unity_FogParams]
//              Vector 14 [unity_LightmapST]
//              Vector 12 [unity_ShadowFadeCenterAndType]
//            }
//          }
//        }
//      }
//    }
// 
// Headers extracted with DarkStarSword's extract_unity_shaders.py
// https://raw.githubusercontent.com/DarkStarSword/3d-fixes/master/extract_unity_shaders.py

    vs_3_0 // Converted from vs_2_0 with DarkStarSword's shadertool.py
dcl_fog o9 // Inserted by shadertool.py for fog compatibility on upgrade from vs_2_0 to vs_3_0
    def c16, 0.5, 1, 0, 0
    dcl_position v0
    dcl_texcoord v1
    dcl_texcoord1 v2

dcl_texcoord o0
dcl_texcoord1 o1
dcl_texcoord2 o2
dcl_texcoord3 o3
dcl_texcoord4 o4
dcl_texcoord5 o5
dcl_position o6


def c220, 0, 1, 0.0625, 0.5
dcl_2d s0

    mad o0.xy, v1, c15, c15.zwzw
    dp4 r0.y, c1, v0
    mul r1.x, r0.y, c10.x
    mul r1.w, r1.x, c16.x
    dp4 r0.x, c0, v0
    dp4 r0.w, c3, v0

mov o6, r0 // Relocated from line 154 with shadertool.py

// Automatic vertex shader halo fix inserted with DarkStarSword's shadertool.py:
// shadertool.py -I ../.. --fix-unity-reflection --auto-fix-vertex-halo --add-fog-on-sm3-update --only-autofixed --ignore-register-errors Legacy Shaders_Bumped Diffuse/vp/CC69967C.txt
texldl r31, c220.z, s0
add r31.w, r0.w, -r31.y
mad r0.x, r31.w, r31.x, r0.x

    mul r1.xz, r0.xyww, c16.x
    mad o2.xy, r1.z, c11.zwzw, r1.xwzw
    mad o3.xy, v2, c14, c14.zwzw
    dp4 r1.x, c7, v0
    dp4 r1.y, c8, v0
    dp4 r1.z, c9, v0
    add r2.xyz, r1, -c12
    mov o1.xyz, r1
    mul o4.xyz, r2, c12.w
    dp4 r1.x, c6, v0
    mov r1.w, c12.w
    add r1.y, -r1.w, c16.y
    mul o4.w, r1.y, -r1.x
    dp4 r0.z, c2, v0
    mad o5.x, r0.z, c13.z, c13.w

//     mov o6, r0 // Relocated to line 139 with shadertool.py
mov o6.z, r0 // Inserted by shadertool.py

mov o9, r0.z // Inserted by shadertool.py for fog compatibility on upgrade from vs_2_0 to vs_3_0
    mov o2.zw, r0
    mov o3.zw, c16.z
